﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Course.aspx.cs" Inherits="Site_Course" %>

<%@ Register Assembly="xIx.Web.Portal" Namespace="xIx.Web.Portal" TagPrefix="DS" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
<DS:LS ID="LS2" runat="server" GroupID="1001" Fields="*" Sort="SortIdx"
    SrcType="item">
</DS:LS>
    <script src="../Js/jquery-1.4.1.js" type="text/javascript"></script>
<div style="background-color:#fffadf; position:relative; ">
<script>
    $(function () {
        $("#Leftmenu li:last").css("border", "none"); //关键函数，注意容器id“#test”要和html代码中一样
    })

</script>
<table>
<tr >
<td style="width:260px; vertical-align:top">
        <div id="Leftmenu" class="LeftMenu" style=" overflow:hidden">
       
          <div class="LeftTitle1" style="background-image:Images/bg-category-head.png">  口琴教程</div>
          <div  class="Leftmain">
            <ul>
        <asp:Repeater runat="server" EnableViewState="false" DataSourceID="LS2" ID="repeater2">
            <ItemTemplate>
                <li onclick="hilight(this)" style=" height:20px; padding-top:20px; "  >
                   <span style=" margin-left:24px"><asp:HyperLink runat="server" ID="hyperlink1" Target="view_frame2"  NavigateUrl='<%#Eval("ID","CourseList.aspx?ID={0}&SID=0") %>'><%#Eval("Title") %></asp:HyperLink></span>
               </li>
            </ItemTemplate>
        </asp:Repeater>
 
        </ul>
        </div>
        <div><img  src="../App_Themes/WebUI/Images/bg-category-bot.png"/></div>
        </div>
    </td>
    <td>
    <div  style=" width:700px; min-height:400px; height:auto !important;height:700px;  margin-right:0px; margin-top:0px; border-left:2px solid gray ">
        <iframe id="view_frame2"  src="CourseList.aspx" name="view_frame2" frameborder="0" onload="iFrameHeight()" ></iframe>
</div>
</td>
</tr>
</table>
<script type="text/javascript" language="javascript">
    function iFrameHeight() {
        var ifm = document.getElementById("view_frame2");
        var subWeb = document.frames ? document.frames["view_frame2"].document : ifm.contentDocument;
        if (ifm != null && subWeb != null) {
            ifm.height = subWeb.body.scrollHeight+30;
        }
    }
    var theObj;
    function hilight(obj) {
        if (theObj != null) {
            //theObj.removeAttr({ style:"background:Orange" });
            var reg = new RegExp('(\\s|^)HighlightLi(\\s|$)');
            theObj.className = theObj.className.replace(reg, ' ');
        }
        if (theObj = obj) {
            theObj.className += " HighlightLi";
        }
    }
</script>
</div>
</asp:Content>